<?php
class ModelCatalogInformation extends Model {
	public function getInformation($information_id) {
		$query = array(
			'title'=>'关于我们',
			'information_id'=>'1',
			'description'=>'我们的介绍.',
		);
	
		return $query;
	}
	
	public function getInformations() {
		$query = array(
			array('title'=>'关于我们','information_id'=>'1')
		);
		
		return $query;
	}
	
	public function getInformationLayoutId($information_id) {
		$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information_to_layout WHERE information_id = '" . (int)$information_id . "' AND store_id = '" . (int)$this->config->get('config_store_id') . "'");
		 
		if ($query->num_rows) {
			return $query->row['layout_id'];
		} else {
			return $this->config->get('config_layout_information');
		}
	}	
}
?>